Call Statement
Enables you to call a function without handling the value returned by the function.
Syntax
Call functionName
Part | Description |
functionName | Any function. |
Notes
Use the Call statement only when you want to call a function without using the value that it returns. This enables you to have the function perform its job without declaring an extra local variable to store the function's result.
Example
The following calls the SelectColor function without using its ( Boolean) result.
Dim c as Color
c= CMY(.35,.9,.6) //choose the default color shown in color picker
Call SelectColor(c,"Select a Color")
Rectangle1.FillColor=c
c= CMY(.35,.9,.6) //choose the default color shown in color picker
Call SelectColor(c,"Select a Color")
Rectangle1.FillColor=c
See Also
Function statement.